var curTypeId;
var curItemId;

function init(){
	document.cachePage = false;
	initSessionData();
	myPlayer.showSeek = false;
	
	initData(afterInitData);
	var type = typeList[curTypeId - 1];
	var data = type.dataList[curItemId - 1];
	play(data);
	hideBackground();
}

function afterInitData(){
	
}

function initSessionData(){
	var _typeId = getSession("live_typeId");
	var _itemId = getSession("live_itemId");
	
	curTypeId = parseInt(_typeId,10); 
	curItemId = parseInt(_itemId,10);
}

function unloadPage(){
	if(player){	//停止播放器
		player.stopPlay();			
	}
	
}

function hideBackground(){
	var body = document.getElementsByTagName('body')[0];
	body.setAttribute("style","background: url();");
	hasHideBackground = true;
}


function gotoPlayPage(data,tar,typeId){
	curTypeId = typeId;
	curItemId = tar;
	
	hideNumberKeyBox();
	play(data);
}